//
//  BCLabelEx.swift
//  BCProject
//
//  Created by you&me on 2017/11/28.
//  Copyright © 2017年 杨杨威. All rights reserved.
//

import Foundation
//自定义可绑定属性
extension UILabel {
    var ex_AlertState: AnyObserver<Bool> {
        return Binder(self){ label , exState in
            label.textColor = exState ? UIColor.orange : UIColor.red
            label.text      = exState ? "输入正确" : "请输入正确手机号"
        }.asObserver()
    }
    
}
